package com.qujia.station.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Goods {

    // 状态(1:待上架 2:已下架 3:在售 4:已售空)
    public static final Integer PENDING_LIST = 1;
    public static final Integer REMOVED_LIST = 2;
    public static final Integer FOR_SALE = 3;
    public static final Integer SOLD_OUT = 4;

    private Long id;

    //油企id
    private Long enterpriseId;

    //油站id
    private Long stationId;

    //商品名称
    private String name;

    //消耗积分
    private Integer consumedPoint;

    //库存
    private Integer stock;

    //商品图片
    private String image;

    //备注
    private String remark;

    //状态(1:待上架 2:已下架 3:在售 4:已售空)
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    private String createdBy;

    private String updatedBy;

    private Long del;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getConsumedPoint() {
        return consumedPoint;
    }

    public void setConsumedPoint(Integer consumedPoint) {
        this.consumedPoint = consumedPoint;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Long getDel() {
        return del;
    }

    public void setDel(Long del) {
        this.del = del;
    }
}
